package com.hsj.common.system.convert;

import com.hsj.common.system.entity.SysRoleDo;
import com.hsj.common.system.vo.request.ReqSysRoleCreateVo;
import com.hsj.common.system.vo.request.ReqSysRoleUpdateVo;
import com.hsj.common.system.vo.response.RespSysRoleVo;
import org.mapstruct.InjectionStrategy;
import org.mapstruct.Mapper;

import java.util.List;

/**
 * 角色 Vo转换类
 * @Author: Czy
 * @Date: 2024-01-23 23:03:26
 * @Email: 314170122@qq.com
 */
@Mapper(componentModel = "spring", injectionStrategy = InjectionStrategy.CONSTRUCTOR)
public interface SysRoleConvert {

    SysRoleDo voToDo(ReqSysRoleCreateVo vo);

    SysRoleDo voToDo(ReqSysRoleUpdateVo vo);

    RespSysRoleVo doToVo(SysRoleDo sysRole);

    List<RespSysRoleVo> doToVo(List<SysRoleDo> sysRoleList);
}
